package com.news.http;public class BaseResponse {    public static final int CODE_FAILURE = 0;    public static final int CODE_SUCCESS = 1;    private int code;    private String message;    public int getCode() {        return code;    }    public void setCode(int code) {        this.code = code;        if (code == CODE_SUCCESS) {            message = "成功";        }    }    public String getMessage() {        return message;    }    public void setMessage(String message) {        this.message = message;    }}